package com.example.mapper;

import com.example.entity.Role;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface RoleMapper {
    // 任务二：查询角色及菜单
    Role selectRoleWithMenus(Map<String, Object> params);

    // 任务二：分页查询角色及菜单
    Page<Role> selectRolesWithMenus(Map<String, Object> params);

    // 按ID查询单个角色及菜单
    Role selectRoleWithMenusById(Integer id);

    // 按名称查询单个角色及菜单
    Role selectRoleWithMenusByName(String name);
}